package com.qs.education.service.impl;

import org.springframework.stereotype.Service;

import com.qs.education.bean.api.ResponseListBean;
import com.qs.education.bean.beans.EducationSchoolBean;
import com.qs.education.bean.beans.EducationSchoolResponse;
import com.qs.education.bean.entity.EducationSchool;
import com.qs.education.bean.service.BaseService;
import com.qs.education.service.ISchoolService;

/**
 * 
 * @class TeacherServiceImpl
 * @author Jason
 * @description
 * @date Nov 9, 2018 9:46:04 AM
 */
@Service
public class SchoolServiceImpl extends BaseService implements ISchoolService{

	@Override
	public ResponseListBean<EducationSchoolBean> getSchoolList() {
		
		return apiCaller.getSchoolList();
	}

	@Override
	public EducationSchoolResponse addSchool(EducationSchool school) {
		
		return apiCaller.addSchool(school);
	}

	@Override
	public ResponseListBean<EducationSchoolBean> findSchoolByCondition(EducationSchool school) {
		
		return apiCaller.getSchoolListByProvinceAndCityAndArea(school);
	}

	@Override
	public EducationSchoolResponse findSchoolById(Integer schoolId) {
		
		return apiCaller.findSchoolById(schoolId);
	}

	@Override
	public EducationSchoolResponse updateSchool(EducationSchool school) {
		
		return apiCaller.updateSchool(school);
	}

	@Override
	public EducationSchoolResponse deleteSchool(Integer schoolId) {
		
		return apiCaller.deleteSchool(schoolId);
	}

	

	

}
